const system = uni.getSystemInfoSync()
export const statusBarHeight = () => system.statusBarHeight || 15

// let {top, height} = uni.getMenuButtonBoundingClientRect()
// let titleBarHeight = ref( height + (top - statusBarHeight.value) * 2 )
export const getTitleBarHeight = () => {
	// #ifdef H5
	return 40
	// #endif
	// #ifdef MP-WEIXIN
	const {top, height} = uni.getMenuButtonBoundingClientRect()
	return  height + (top - statusBarHeight() ) * 2 
	// #endif

}

export const getNavBarHeight = () => {
	return getTitleBarHeight() + statusBarHeight()
}